<%@ page import="com.confidena.MessageSon" %>



<div class="fieldcontain ${hasErrors(bean: messageSonInstance, field: 'creationDate', 'error')} required">
	<label for="creationDate">
		<g:message code="messageSon.creationDate.label" default="Creation Date" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="creationDate" precision="day"  value="${messageSonInstance?.creationDate}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: messageSonInstance, field: 'message', 'error')} ">
	<label for="message">
		<g:message code="messageSon.message.label" default="Message" />
		
	</label>
	<g:textField name="message" value="${messageSonInstance?.message}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: messageSonInstance, field: 'messageFather', 'error')} required">
	<label for="messageFather">
		<g:message code="messageSon.messageFather.label" default="Message Father" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="messageFather" name="messageFather.id" from="${com.confidena.Message.list()}" optionKey="id" required="" value="${messageSonInstance?.messageFather?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: messageSonInstance, field: 'person', 'error')} required">
	<label for="person">
		<g:message code="messageSon.person.label" default="Person" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="person" name="person.id" from="${com.confidena.security.Person.list()}" optionKey="id" required="" value="${messageSonInstance?.person?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: messageSonInstance, field: 'viewFrom', 'error')} ">
	<label for="viewFrom">
		<g:message code="messageSon.viewFrom.label" default="View From" />
		
	</label>
	<g:checkBox name="viewFrom" value="${messageSonInstance?.viewFrom}" />
</div>

<div class="fieldcontain ${hasErrors(bean: messageSonInstance, field: 'viewTo', 'error')} ">
	<label for="viewTo">
		<g:message code="messageSon.viewTo.label" default="View To" />
		
	</label>
	<g:checkBox name="viewTo" value="${messageSonInstance?.viewTo}" />
</div>

